projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bbe09a
)
Don't overwrite roles
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 1 Jul 2011 04:48:25 +0000
(
00:48
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 5 Jul 2011 20:08:56 +0000
(16:08 -0400)
Otherwise, every GtkBox subclass will have to override
get_accessible just to keep their roles.
gtk/gtkbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbox.c
b/gtk/gtkbox.c
index e3fb70788c8721716e2f3a1543c6ae009a62b47c..69b3d777219563548ce1625c02570034c667e20b 100644
(file)
--- a/
gtk/gtkbox.c
+++ b/
gtk/gtkbox.c
@@
-1361,7
+1361,8
@@
gtk_box_get_accessible (GtkWidget *widget)
obj = GTK_WIDGET_CLASS (gtk_box_parent_class)->get_accessible (widget);
- atk_object_set_role (obj, ATK_ROLE_FILLER);
+ if (atk_object_get_role (obj) == ATK_ROLE_UNKNOWN)
+ atk_object_set_role (obj, ATK_ROLE_FILLER);
return obj;
}